package com.itbaizhan.cxpt.mapper;

import com.itbaizhan.cxpt.entity.GbStandardAnalysis;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface GbStandardAnalysisMapper {
    @Insert("INSERT INTO gb_standard_analysis (standard_no, standard_name, pdf_page, pdf_file_name) " +
           "VALUES (#{standardNo}, #{standardName}, #{pdfPage}, #{pdfFileName})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int insert(GbStandardAnalysis analysis);
}